/*
 * Powered By dico
 * Since 2017 - 2018
 */
package com.seeyoui.kensite.bussiness.orderlang.warehouseProduct.persistence;

import com.seeyoui.kensite.common.base.domain.EasyUIDataGrid;
import com.seeyoui.kensite.bussiness.orderlang.product.domain.Product;
import com.seeyoui.kensite.bussiness.orderlang.warehouseProduct.domain.WarehouseProduct;
import com.seeyoui.kensite.bussiness.orderlang.warehouseProduct.domain.WarehouseProductVO;

import java.util.*;

import com.seeyoui.kensite.common.exception.CRUDException;

/**
 * WarehouseProduct
 * @author dico
 * @version 2.0
 * @since 1.0
 * @date 2018-02-07
 */

public interface WarehouseProductMapper {
    
    /**
     * 获取商品库存
     * @param warehouseProduct
     * @return
     */
    public List<WarehouseProduct> findProductInvertory(Map map);
    
    public float findQuantityByProductPriceId(String productPriceId);

	/**
	 * 根据ID查询单条数据
	 * @param id
	 * @return
	 */
	public WarehouseProduct findOne(String id);
	
	/**
	 * 查询数据集合
	 * @param warehouseProduct
	 * @return
	 */
	public List<WarehouseProduct> findList(WarehouseProduct warehouseProduct);
	
	/**
     * 查询数据集合
     * @param warehouseProduct
     * @return
     */
    public List<Product> findListForInventory(Map map);
	
	/**
	 * 查询所有数据集合
	 * @param warehouseProduct
	 * @return
	 */
	public List<WarehouseProduct> findAll(WarehouseProduct warehouseProduct);
	
    /**
     * 查询数据集合
     * @param warehouseProduct
     * @return
     */
    public List<WarehouseProductVO> findWarehousProduct(Map map);

    
    /**
     * 查询数据总数
     * @param warehouseProduct
     * @return
     */
    public int findTotalWarehousProduct(Map map);
	
	/**
	 * 查询数据总数
	 * @param warehouseProduct
	 * @return
	 */
	public int findTotal(WarehouseProduct warehouseProduct);
	
	/**
     * 查询数据总数
     * @param warehouseProduct
     * @return
     */
    public int findTotalForInventory(Map map);

	/**
	 * 查询数据总数排除当前数据
	 * @param warehouseProduct
	 * @return
	 */
	public int findExTotal(WarehouseProduct warehouseProduct);
	
	/**
	 * 数据新增
	 * @param warehouseProduct
	 */
	public void save(WarehouseProduct warehouseProduct);
	
	/**
	 * 数据修改
	 * @param warehouseProduct
	 */
	public void update(WarehouseProduct warehouseProduct);
	
	/**
	 * 数据删除
	 * @param listId
	 */
	public void delete(List<String> listId);
	
	/**
	 * 数据假删除
	 * @param warehouseProduct
	 */
	public void remove(WarehouseProduct warehouseProduct);
	
}